/******************************************************************************
 * Copyright 2024 zhangcong. All Rights Reserved.
 *****************************************************************************/

#pragma once

#include <stdint.h>
#include "nlohmann/json.hpp"

using json = nlohmann::json;

class StoreTaskProto {
 private:
  StoreTaskProto() {}
  ~StoreTaskProto() {}

 public:
  static StoreTaskProto *GetInstance();

  int32_t DeSerialize(const uint8_t *recvData, const int32_t recvSize);

  void GetPlatCmd(json &platcmd);

 private:
    static StoreTaskProto* m_instance;
    json m_platcmd;
};
